# 父类
class Animal:
    def make_sound(self):
        print("Some generic sound")

# 子类1
class Dog(Animal):
    def make_sound(self):
        print("Bark")

# 子类2
class Cat(Animal):
    def make_sound(self):
        print("Meow")

# 测试多态
def make_animal_sound(animal):
    animal.make_sound()

# 创建子类对象
my_dog = Dog()
my_cat = Cat()

# 调用函数，这里会根据对象的实际类型调用相应的方法
make_animal_sound(my_dog)  # 输出：Bark
make_animal_sound(my_cat)  # 输出：Meow

v = Animal()
make_animal_sound(v)